package org.apogeescience.main;

import java.util.List;

import org.apogeescience.exceptions.TableNotDefinedException;
import org.apogeescience.query.Query;
import org.apogeescience.test.User;

public class Main {

	public static void main(String[] args) throws TableNotDefinedException {
		
		
		Query query = new Query();
		query.getNamedQuery("testSelect", User.class);
		query.setParameter("UserName", "locus2k");
		
		@SuppressWarnings("unchecked")
		List<User> users = (List<User>) query.execute();
		
		for(User u : users) {
			System.out.println(u);
		}
	}
}
